package com.ruoyi.project.play.orderDetail.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 订单详情对象 order_detail
 * 
 * @author wyh
 * @date 2024-07-13
 */
public class OrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 子订单号 */
    private String outTradeNo;

    /** 预付单号 */
    @Excel(name = "预付单号")
    private String transactionId;

    /** 父订单号 */
    @Excel(name = "父订单号")
    private String parentOutTradeNo;

    /** 订单名称 */
    @Excel(name = "订单名称")
    private String name;

    /** 服务项目id */
    @Excel(name = "服务项目id")
    private Long serviceId;

    /** 服务人员id */
    @Excel(name = "服务人员id")
    private Long serviceUserId;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payType;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /** 小计金额 */
    @Excel(name = "小计金额")
    private BigDecimal subtotal;

    /** 用户备注 */
    @Excel(name = "用户备注")
    private String userRemark;

    public void setOutTradeNo(String outTradeNo) 
    {
        this.outTradeNo = outTradeNo;
    }

    public String getOutTradeNo() 
    {
        return outTradeNo;
    }
    public void setTransactionId(String transactionId) 
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId() 
    {
        return transactionId;
    }
    public void setParentOutTradeNo(String parentOutTradeNo) 
    {
        this.parentOutTradeNo = parentOutTradeNo;
    }

    public String getParentOutTradeNo() 
    {
        return parentOutTradeNo;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setServiceId(Long serviceId) 
    {
        this.serviceId = serviceId;
    }

    public Long getServiceId() 
    {
        return serviceId;
    }
    public void setServiceUserId(Long serviceUserId) 
    {
        this.serviceUserId = serviceUserId;
    }

    public Long getServiceUserId() 
    {
        return serviceUserId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPayType(String payType) 
    {
        this.payType = payType;
    }

    public String getPayType() 
    {
        return payType;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setSubtotal(BigDecimal subtotal) 
    {
        this.subtotal = subtotal;
    }

    public BigDecimal getSubtotal() 
    {
        return subtotal;
    }
    public void setUserRemark(String userRemark) 
    {
        this.userRemark = userRemark;
    }

    public String getUserRemark() 
    {
        return userRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("outTradeNo", getOutTradeNo())
            .append("transactionId", getTransactionId())
            .append("parentOutTradeNo", getParentOutTradeNo())
            .append("name", getName())
            .append("serviceId", getServiceId())
            .append("serviceUserId", getServiceUserId())
            .append("type", getType())
            .append("payType", getPayType())
            .append("status", getStatus())
            .append("unitPrice", getUnitPrice())
            .append("num", getNum())
            .append("subtotal", getSubtotal())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("userRemark", getUserRemark())
            .toString();
    }
}
